<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
        <meta content="telephone=no" name="format-detection" />
        <title>上级推广</title>
        <link href="{{asset('/mobile/css/style.css')}}" rel="stylesheet" type="text/css">
    </head>
    <style type="text/css">
        body{
            background-color: #F1F1F1;
        }
        .top-img{
            width: 100%;
        }
        .li{
            background-color: #FFFFFF;
            border-bottom: 1px solid #d0d0d0;
            padding: 15px 20px;
            overflow: hidden;
        }
        .li-left{
            float: left;
        }
        .li-right{
            float: right;
        }
        .red{
            color: #D42400;
        }
        
    </style>
    <body>
        <img class="top-img" src="{{asset('/imgs/top1.png')}}"/>
        <div id="con" class="list">
            <div class="li">
                <div class="li-left">我的上级推广</div>
                <div class="li-right red">@if($agent->parent()) {{$agent->parent()->realname}} @endif</div>
            </div>
            <div class="li">
                <div class="li-left">上级推广电话</div>
                <div class="li-right red">{{$agent->parent()->mobile}}</div>
            </div>
            <div class="li">
                <div class="li-left">我的分成</div>
                <div class="li-right red">{{$agent->divide}}%</div>
            </div>
            <div class="li">
                <div class="li-left">绑定日期</div>
                <div class="li-right red">{{$agent->created_at}}</div>
            </div>
        </div>
        
    <script type="text/javascript" src="{{asset('/mobile/js/jquery-1.8.3.min.js')}}"></script>
    <script type="text/javascript" src="{{asset('/js/Inertia.js')}}"></script>
    <script type="text/javascript" src="{{asset('/js/backHome.js')}}"></script>
    <script type="text/javascript">
        
    </script>
    </body>
</html>
